package cn.xsly.ymcc.fegin;


import cn.xsly.ymcc.doc.CourseDoc;
import cn.xsly.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-search",fallbackFactory = SearchFeginFactory.class)
public interface SearchFeginClient {
    @RequestMapping(value = "/search/save", method = RequestMethod.POST)
    public JSONResult save(@RequestBody CourseDoc doc);
    @RequestMapping(value = "/search/delete", method = RequestMethod.POST)
    public JSONResult delete(@RequestBody CourseDoc doc);
}
